if (UNIX AND NOT APPLE)

  set(uuid "workrave@workrave.org")
  set(url "http://www.workrave.org")

  configure_file(metadata.json.in ${CMAKE_CURRENT_BINARY_DIR}/metadata.json)

  add_custom_target(generate_cinnamon_metadata ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/metadata.json)

  install(
    FILES ${CMAKE_CURRENT_BINARY_DIR}/metadata.json applet.js
    DESTINATION ${DATADIR}/cinnamon/applets/${uuid}
    OPTIONAL
    )

endif()
